module: run require.resolve through module.registerHooks()#62028
module: run require.resolve through module.registerHooks()#62028nodejs-github-bot merged 3 commits intonodejs:mainfrom
Conversation
Previously, require.resolve() called Module._resolveFilename() directly, bypassing any resolve hooks registered via module.registerHooks(). This patch fixes that.
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62028 +/- ##
==========================================
- Coverage 89.73% 89.65% -0.08%
==========================================
Files 676 676
Lines 206069 206285 +216
Branches 39515 39521 +6
==========================================
+ Hits 184915 184946 +31
- Misses 13305 13462 +157
- Partials 7849 7877 +28
🚀 New features to boost your workflow:
|
|
It seems @mcollina @GeoffreyBooth @marco-ippolito Can you take a look at the last commit? Thanks! |
|
CI is green. Can you take another look please? @mcollina @GeoffreyBooth @marco-ippolito |
|
On a side note - I've been working on a POC of polyfilling |
|
Landed in dd400b9 |
Previously, require.resolve() called Module._resolveFilename() directly, bypassing any resolve hooks registered via module.registerHooks(). This patch fixes that. PR-URL: #62028 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Previously, require.resolve() called Module._resolveFilename() directly, bypassing any resolve hooks registered via module.registerHooks(). This patch fixes that.